Optimal. Leaf size=51 \[ -\frac {b m n (e x)^{1+q}}{e (1+q)^2}+\frac {(e x)^{1+q} \left (a+b \log \left (c \left (d x^m\right )^n\right )\right )}{e (1+q)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2341, 2495}
\begin {gather*} \frac {(e x)^{q+1} \left (a+b \log \left (c \left (d x^m\right )^n\right )\right )}{e (q+1)}-\frac {b m n (e x)^{q+1}}{e (q+1)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2341
Rule 2495
Rubi steps
\begin {align*} \int (e x)^q \left (a+b \log \left (c \left (d x^m\right )^n\right )\right ) \, dx &=\text {Subst}\left (\int (e x)^q \left (a+b \log \left (c d^n x^{m n}\right )\right ) \, dx,c d^n x^{m n},c \left (d x^m\right )^n\right )\\ &=-\frac {b m n (e x)^{1+q}}{e (1+q)^2}+\frac {(e x)^{1+q} \left (a+b \log \left (c \left (d x^m\right )^n\right )\right )}{e (1+q)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 37, normalized size = 0.73 \begin {gather*} \frac {x (e x)^q \left (a-b m n+a q+b (1+q) \log \left (c \left (d x^m\right )^n\right )\right )}{(1+q)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \left (e x \right )^{q} \left (a +b \ln \left (c \left (d \,x^{m}\right )^{n}\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 63, normalized size = 1.24 \begin {gather*} -\frac {b m n x e^{\left (q \log \left (x\right ) + q\right )}}{{\left (q + 1\right )}^{2}} + \frac {\left (x e\right )^{q + 1} b e^{\left (-1\right )} \log \left (\left (d x^{m}\right )^{n} c\right )}{q + 1} + \frac {\left (x e\right )^{q + 1} a e^{\left (-1\right )}}{q + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 69, normalized size = 1.35 \begin {gather*} \frac {{\left ({\left (b q + b\right )} x \log \left (c\right ) + {\left (b n q + b n\right )} x \log \left (d\right ) + {\left (b m n q + b m n\right )} x \log \left (x\right ) - {\left (b m n - a q - a\right )} x\right )} e^{\left (q \log \left (x\right ) + q\right )}}{q^{2} + 2 \, q + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 4.27, size = 110, normalized size = 2.16 \begin {gather*} a \left (\begin {cases} 0^{q} x & \text {for}\: e = 0 \\\frac {\begin {cases} \frac {\left (e x\right )^{q + 1}}{q + 1} & \text {for}\: q \neq -1 \\\log {\left (e x \right )} & \text {otherwise} \end {cases}}{e} & \text {otherwise} \end {cases}\right ) - b m n \left (\begin {cases} 0^{q} x & \text {for}\: \left (e = 0 \wedge q \neq -1\right ) \vee e = 0 \\\frac {\begin {cases} \frac {e x \left (e x\right )^{q}}{q + 1} & \text {for}\: q \neq -1 \\\log {\left (x \right )} & \text {otherwise} \end {cases}}{e q + e} & \text {for}\: q > -\infty \wedge q < \infty \wedge q \neq -1 \\\frac {\log {\left (e x \right )}^{2}}{2 e} & \text {otherwise} \end {cases}\right ) + b \left (\begin {cases} 0^{q} x & \text {for}\: e = 0 \\\frac {\begin {cases} \frac {\left (e x\right )^{q + 1}}{q + 1} & \text {for}\: q \neq -1 \\\log {\left (e x \right )} & \text {otherwise} \end {cases}}{e} & \text {otherwise} \end {cases}\right ) \log {\left (c \left (d x^{m}\right )^{n} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 111 vs.
\(2 (51) = 102\).
time = 4.96, size = 111, normalized size = 2.18 \begin {gather*} \frac {b m n q x x^{q} e^{q} \log \left (x\right )}{q^{2} + 2 \, q + 1} + \frac {b m n x x^{q} e^{q} \log \left (x\right )}{q^{2} + 2 \, q + 1} - \frac {b m n x x^{q} e^{q}}{q^{2} + 2 \, q + 1} + \frac {b n x x^{q} e^{q} \log \left (d\right )}{q + 1} + \frac {b x x^{q} e^{q} \log \left (c\right )}{q + 1} + \frac {a x x^{q} e^{q}}{q + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\left (e\,x\right )}^q\,\left (a+b\,\ln \left (c\,{\left (d\,x^m\right )}^n\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________